﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_principal : System.Web.UI.Page
{
    RE_User ruser;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] == null) Response.Redirect("../default.aspx");
        ruser= (RE_User)Session["userid"];
        
    }
    protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
    {
        if (ruser.Level != 2) { Response.Redirect("buscador.aspx"); }
    }
    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {
        Response.Redirect("MPowerForm.aspx");
    }
}